<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>用户注册</title>
</head>
<body>
<h2>用户注册</h2>
<form action="${pageContext.request.contextPath}/user/register" method="post">
    <table>
        <tr>
            <td>用户名：</td>
            <td><input type="text" name="username" required></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input type="password" name="password" required></td>
        </tr>
        <tr>
            <td>邮箱：</td>
            <td><input type="email" name="email" required></td>
        </tr>
        <tr>
            <td>手机号：</td>
            <td><input type="text" name="phone" required></td>
        </tr>
        <tr>
            <td>用户角色：</td>
            <td>
                <input type="radio" name="role" value="0" checked> 普通用户
                <input type="radio" name="role" value="1"> 专家用户
                <input type="radio" name="role" value="2"> 管理员
            </td>
        </tr>
        <tr>
            <td colspan="2"><button type="submit">注册</button></td>
        </tr>
    </table>
</form>
</body>
</html>